package com.schillerchina.baselibrary.base;

import android.app.Application;
import android.content.Context;

/**
 * @author zhangzhiguo
 * @date 2019-08-06 13:26
 * @Description:
 */
public class BaseApplication extends Application {


    private static BaseApplication instance;


    @Override
    public void onCreate() {
        super.onCreate();
        instance = this;
    }

    public static Application getInstance() {
        return instance;
    }

    public static Context getContext() {
        return instance.getApplicationContext();
    }
    public static void killProcess() {
        android.os.Process.killProcess(android.os.Process.myPid());
        System.exit(1);
    }
}
